package cn.kgc.easybuy.dao;

import cn.kgc.easybuy.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
* @program: yingzi-wants-to-sleep
* @description: 
* @author: 敖成
* @create: 2025-09-10 10:56
**/
@Mapper
@Repository
public interface UserMapper {
    List<User> selectUserByPage(Map<String,Object> params);

    User selectUserById(Integer id);

    User login(String loginName);

    int delUser(Integer id);

    int addUser(User user);

    int updateUser(User user);

    int checkLoginName(String loginName);

    int checkEmail(String email);

    int checkMobile(String mobile);

    int checkIdentityCode(String identityCode);

    int checkPassword(User user);

    User selectUserByEmail(String email);


}
